Skip to content

Implement basic A2A demo for ACK-ID identity exchange#11

Merged
venables merged 3 commits intomainfrom
venables/a2a-demo
Jun 25, 2025
Merged

Implement basic A2A demo for ACK-ID identity exchange#11
venables merged 3 commits intomainfrom
venables/a2a-demo

Conversation

@venables
Copy link
Contributor

This PR implements a new demo showcasing how two agents using A2A can securely exchange their identity information using ACK-ID.

This PR also provides additional tools via agentcommercekit and @agentcommercekit/ack-id packages (via agentcommercekit/a2a and @agentcommercekit/ack-id/a2a) to begin using these methods in real world A2A agents.

Copy link
Collaborator

@domleboss97 domleboss97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖

@@ -0,0 +1,155 @@
import { generateKeypair } from "@agentcommercekit/keys"
import { verifyJWT } from "did-jwt"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - night be easier to scan the tests if this was imported as verifyJwtBase or something. verifyJWT vs verifyJwt is a bit of a subtle difference.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe I covered everything, was there any that you noticed?

"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"a2a-js": "^0.2.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is adding it as a dev dependency required here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because we have it listed as a peerDependency as well, so it's best to also include in devDependencies, but technically not required. I believe it would be fine without listing as a peerDep as well in many package managers because ack-id does it, but wanted to be sure.

@venables venables merged commit 70b3fc9 into main Jun 25, 2025
2 checks passed
@venables venables deleted the venables/a2a-demo branch June 25, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants